'use strict';

const Controller = require('egg').Controller;

class MonitorController extends Controller {
  /**
   * 日志上报接口
   */
  async login(){
    const { ctx , service, request} = this;
    // 数据预处理
	const data = ctx.request.body;
	const result = {
		token: ''
	}
    ctx.success(result)
  }

  async userInfo(){
    const { ctx , service, request} = this;
    ctx.success({
		name: 'Caroline',
		age : 18
	})

  }
}

module.exports = MonitorController;